// components/titlecom/titlecom.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    data: {
      type: Object,
      value: 'default value',
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    bool:true
  },

  /**
   * 组件的方法列表
   */
  methods: {
    goNewProductPage(e){
      let id = e.currentTarget.dataset.title
      if(id === 2){
        wx.navigateTo({
          url: '/pages/newproduct/mine/index',
        })
      }else if(id === 0){
        wx.navigateTo({
          url: '/pages/home/homePage/AllHouses/index',
        })
      }else if(id === 1){
        wx.navigateTo({
          url: '/pages/afflatus/afflatusPage/Find/index',
        })
      }else if(id === 3){
        wx.setStorageSync('Factive', 2)
        wx.reLaunch({
          url: `/pages/Featured/main/index?active=${2}`,
        })
      }
      
    }
  }
})
